package com.activiti.z_six.service;

import com.activiti.z_six.entity.formComponents.FormEntity;
import com.activiti.z_six.entity.formComponents.FormSortEntity;
import com.activiti.z_six.entity.taskAssignee.GenerWork;

import java.util.HashMap;
import java.util.List;

public interface IFormMapService {
    /**
    获取表单模版列表
     */
    public HashMap<String,Object> formList(String name,String formSort,Integer page,Integer pagesize);
    /*
    获取表单模版
     */
    public FormEntity getFormEntity(String id);
    /*
    添加表单
     */
    public String addForm(String id,String name,String createTime,String formSort,String form_event
            ,String form_event_link,String form_data_table,String form_sub_tables,String form_json);
    /*
    删除表单
     */
    public String deleteForm(String id);
    /*
    修改表单
     */
    public String updateForm(String id,String name,String createTime,String formSort,String form_event
            ,String form_event_link,String form_data_table,String form_sub_tables,String form_json);
    /*
    获取表单分类
     */
    public List<FormSortEntity> formSortList();
    /*
    获取分类信息
     */
    public FormSortEntity getFormSort(String id);
    /*
    增加分类
     */
    public String addFormSort(String id,String name,String parentNo);
    /*
    删除分类
     */
    public String deleteFormSort(String id);
    /*
    修改分类
     */
    public String updateFormSort(String id,String name,String parentNo);
    /*
    保存表单数据json
     */
    public String saveFormDataJson(String id,String mapJson,String dataJson);
    public HashMap<String,Object> getFromDataList(Integer pageNum, Integer pagesize, String xmmc);
    public HashMap<String,Object> getTodoList(Integer pageNum,Integer pagesize,String flowName);
    public GenerWork getGenerWork(String id);
    public String deleteGenerWork(String id);
}
